﻿using Iterator;

Sample s = new Sample();
var enum1 = s.Method();
var e1 = enum1.GetEnumerator();
e1.MoveNext();

Console.WriteLine(e1.Current);
e1.MoveNext();
Console.WriteLine(e1.Current);

var method2 = s.Method2();
var prices = method2.GetEnumerator();
prices.MoveNext();
Console.WriteLine(prices.Current);



Console.ReadKey();